public class Demo {
    public static void main(String[] args) {
        Product p1 = new Product();
        p1.setName("茶叶蛋");
        Product p2 = new Product();
        p2.setName("酸奶");

        Market market = new Market();
        market.setName("十足");
        Product[] p = {p1, p2};
        market.setProducts(p);

        Product p3 = new Product();
        p3.setName("作业");

        Cutso cutso=new Cutso();
        cutso.setName("小王");
        cutso.shopping(market ,p1);
        cutso.shopping(market,p2);
    }
}
